<h2 class="contentTitle">编辑用户</h2>
<form action="<?php echo SITE_URL . 'index.php?c='.$controller.'&a=ajaxEdit';?>" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
<div class="pageContent">
	<div class="pageFormContent" layoutH="97">
        <div class="unit">
            <label>用户名：</label>
            <?php if($is_super_admin){?>
                <input type="text" name="account" size="25" value="<?php echo $user_info['account'];?>" class="required textInput valid"/>
                <span class="inputInfo">请填写员工登录账号</span>
            <?php }else{?>
            <?php echo $user_info['account'];?>
            <?php }?>
            <input type="hidden" name="user_id" value="<?php echo $user_info['user_id'];?>">
		</div>
        <div class="unit">
            <label>昵称：</label>
            <input type="text" name="nick_name" size="25" value="<?php echo $user_info['nick_name'];?>" class="required textInput valid">
            <span class="inputInfo">请填写员工昵称</span>
        </div>
        <div class="unit">
            <label>真名：</label>
            <?php if($is_super_admin){?>
                <input type="text" name="real_name" size="25" value="<?php echo $user_info['real_name'];?>" class="required textInput valid">
            <?php }else{?>
                <?php echo $user_info['real_name'];?>
            <?php }?>

            <span class="inputInfo">请填写员工真实姓名</span>
        </div>
        <div class="unit">
            <label>旧密码：</label>
            <input type="password" name="password" size="25" class="textInput">
            <span class="inputInfo">原来的登录密码</span>
		</div>
        <div class="unit">
            <label>新密码：</label>
            <input type="password" name="newpassword" size="25" class="textInput">
            <span class="inputInfo">要修改的密码</span>
		</div>
        <div class="unit">
            <label>确认密码：</label>
            <input type="password" name="repassword" size="25" class="textInput">
            <span class="inputInfo">确认要修改的密码</span>
		</div>
        <?php if($editrole){?>
        <div class="unit">
            <label>权限组：</label>
		    <input name="role_ids" type="hidden" value="<?php echo $role_ids;?>"/>
            <textarea rows="2" cols="30" class="textInput" name="role_names"  readonly=""><?php echo $role_names;?></textarea>
			<a class="btnLook" target="dialog" href="<?php echo SITE_URL . 'index.php?c=role&a=ajaxLookUp&rel=edit_user';?>" rel="role_lookup">选择所属权限组</a>
            <span class="inputInfo">点击选择权限组</span>
		</div>
        <?php }?>
        <div class="unit">
            <label>邮箱：</label>
            <input type="text" name="email" size="25" class="email textInput valid" value="<?php echo $user_info['email'];?>">
            <span class="inputInfo">联系使用</span>
		</div>
        <div class="unit">
            <label>联系电话：</label>
            <input type="text" name="tel" size="25" class="phone textInput valid" value="<?php echo $user_info['tel'];?>">
            <span class="inputInfo">联系使用</span>
		</div>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
		</ul>
	</div>
</div>
</form>
